package com.qingdai.emuns;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "角色权限DTO")
public class PermissionDTO implements Serializable {
    //UserRole
    @Schema(name = "用户id")
    private Integer userId;
    @Schema(name = "角色id")
    private Integer roleId;

    //RolePermission
//    private Integer roleId;
    @Schema(name = "权限id")
    private Integer permissionId;

    //Permission
    @Schema(description = "id")
    private Integer id;
    @Schema(description = "名字")
    private String name;
    @Schema(description = "url")
    private String url;
    @Schema(description = "父权限id")
    private Integer parentId;
    @Schema(description = "类型")
    private String type;
    @Schema(description = "许可")
    private String permit;
    @Schema(description = "备注")
    private String remark;
}
